﻿function ShowNo(id)                        //隐藏两个层
{
	$(id).style.display = "none";
}
function $(id) {
	return (document.getElementById) ? document.getElementById(id) : document.all[id];
}
function showFloat(id)                   //根据屏幕的大小显示两个层
{
	var range = getRange();
	$(id).style.width = range.width + "px";
	$(id).style.height = range.height + "px";
	$(id).style.display = "block";
}
function getRange()                      //得到屏幕的大小
{
	var top = document.body.scrollTop;
	var left = document.body.scrollLeft;
	var height = document.body.clientHeight;
	var width = document.body.clientWidth;

	if (top == 0 && left == 0 && height == 0 && width == 0) {
		top = document.documentElement.scrollTop;
		left = document.documentElement.scrollLeft;
		height = document.documentElement.clientHeight;
		width = document.documentElement.clientWidth;
	}
	return { top: top, left: left, height: height, width: width };
} 